package com.cloud_sang.fubai.service;

import com.cloud_sang.entity.CommonResult;
import com.cloud_sang.entity.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @Description TD:
 * @Author sangsang
 * @Date 2021/1/6 9:40 下午
 **/
@Component
@FeignClient(value = "cloud-payment-service")
public interface PaymentFeignService {

	@GetMapping("payment/get/{id}")
	CommonResult<Payment> getById(@PathVariable("id") Long id);

	@GetMapping("/payment/feign/timeout")
	String paymentFeignTimeOut();
}
